<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Cargo
 *
 * @author carlos
 */
class Cargo extends GestionDb
{
    private $idCargo;
    private $Car_idCargo;
    private $CargoAnterior;
    private $observaciones;
    
    function __construct($idCargo, $Car_idCargo, $CargoAnterior, $observaciones) {
        parent::__construct();
        $this->idCargo = $idCargo;
        $this->Car_idCargo = $Car_idCargo;
        $this->CargoAnterior = $CargoAnterior;
        $this->observaciones = $observaciones;
    }

    
    protected function getDatos() 
    {
        $datos[0][0] = "idCargo"; $datos[0][1] = $this->idCargo;
        $datos[1][0] = "Car_idCargo";    $datos[1][1] = $this->Car_idCargo;        
        $datos[2][0] = "CargoAnterior";    $datos[2][1] = $this->CargoAnterior;        
        $datos[3][0] = "observaciones";    $datos[3][1] = $this->observaciones;        
            
        
        return $datos;
    }

    protected function getTabla() {
        return "CARGO";
    }

//put your code here
}
